package com.qianying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 维修师傅信息实体类
 * 作者：check
 */
@Data
@TableName("repairman_info")
@Schema(description = "维修师傅信息表")
public class RepairmanInfo {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户Id")
    private Long userId;

    @Schema(description = "真实姓名", example = "张三")
    private String realName;

    @Schema(description = "身份证号码", example = "110101199001011234")
    private String idCard;

    @Schema(description = "身份证正面照片", example = "http://www.aaa/Front.png")
    private String idCardFront;
    @Schema(description = "身份证背面照片", example = "http://www.aaa/Back.png")
    private String idCardBack;

    @Schema(description = "常住地址", example = "北京市朝阳区建国路88号")
    private String address;

    @Schema(description = "省份ID", example = "110000")
    private Long provinceId;

    @TableField(exist = false)
    private String provinceName;

    @Schema(description = "城市ID", example = "110100")
    private Long cityId;
    @TableField(exist = false)
    private String cityName;


    @Schema(description = "区县ID", example = "110105")
    private Long districtId;

    @TableField(exist = false)
    private String districtame;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
